#!/bin/bash

set -e

MODE_FILES=$1

javafoundations/scripts/create-idea-project \
--mode-files "$MODE_FILES" \
--project-root=thrift/lib/java \
//thrift/lib/java/benchmarks:benchmarks \
//thrift/lib/java/common:common \
//thrift/lib/java/common:common-test \
//thrift/lib/java/guice:guice \
//thrift/lib/java/guice:guice-test \
//thrift/lib/java/runtime:runtime \
//thrift/lib/java/runtime:runtime-test \
//thrift/lib/java/example/ping:ping-lib \
//thrift/lib/java/facebook/service-framework:service-framework \
//thrift/lib/java/facebook/service-framework:service-framework-test \
//thrift/lib/java/test-common/... \
//thrift/lib/java/test-if/... \
//thrift/lib/java/test:test \
--verbose \
--non-interactive
